package com.cc.sanjieduan.mapper;

import com.cc.sanjieduan.pojo.UserOnline;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

public interface UserOnlineMapper {

    void addOnlineData(UserOnline userOnline);

    @Select("SELECT * FROM sys_user_online WHERE login_name =#{loginName}")
    UserOnline selectByLoginName(String loginName);

    @Delete("delete from sys_user_online WHERE login_name =#{loginName}")
    void deleteByLoginName(String loginName);

}
